﻿<phone:PhoneApplicationPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
                            xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                            xmlns:ec="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
                            xmlns:controlsPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls"
                            xmlns:eim="clr-namespace:Microsoft.Expression.Interactivity.Media;assembly=Microsoft.Expression.Interactions"
                            xmlns:Bewise_Phone="clr-namespace:Bewise.Phone;assembly=Bewise.Phone"
                            x:Class="AuchanScan.Views.MainPage" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
                            SupportedOrientations="PortraitOrLandscape" 
							Orientation="Portrait" 
							toolkit:TiltEffect.IsTiltEnabled="True">
    <phone:PhoneApplicationPage.Resources>

        <DataTemplate x:Key="HeaderTemplate">
            <Grid Height="87" Margin="0,100,0,0">
                <Image Source="../images/Logo.png" Stretch="Fill" VerticalAlignment="Top" Margin="12,0,0,0" />
            </Grid>
        </DataTemplate>

        <Style x:Key="PanoramaStyle" TargetType="controls:Panorama">
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <controlsPrimitives:PanoramaPanel x:Name="panel" />
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="controls:Panorama">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <controlsPrimitives:PanningBackgroundLayer x:Name="BackgroundLayer" HorizontalAlignment="Left"
                                                         Grid.RowSpan="2">
                                <Border x:Name="background" Background="{TemplateBinding Background}" CacheMode="BitmapCache" />
                            </controlsPrimitives:PanningBackgroundLayer>
                            <controlsPrimitives:PanningTitleLayer x:Name="TitleLayer" CacheMode="BitmapCache"
                                                    ContentTemplate="{TemplateBinding TitleTemplate}" Content="{TemplateBinding Title}" FontSize="187"
                                                    FontFamily="{StaticResource PhoneFontFamilyLight}" HorizontalAlignment="Left" Margin="10,-76,0,9" Grid.Row="0" />
                            <controlsPrimitives:PanningLayer x:Name="ItemsLayer" HorizontalAlignment="Left" Grid.Row="1"
                                               Margin="0,-22,0,0">
                                <ItemsPresenter x:Name="items" />
                            </controlsPrimitives:PanningLayer>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>       

        <Style x:Key="ListBoxItemStyle1" TargetType="ListBoxItem">
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="BorderBrush" Value="Transparent" />
            <Setter Property="Padding" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Left" />
            <Setter Property="VerticalContentAlignment" Value="Top" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <Border x:Name="LayoutRoot" BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"
                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal" />
                                    <VisualState x:Name="MouseOver" />
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"
                                                     Storyboard.TargetName="LayoutRoot">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TransparentBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                            <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="Opacity"
                                       Storyboard.TargetName="ContentContainer" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="SelectionStates">
                                    <VisualState x:Name="Unselected" />
                                    <VisualState x:Name="Selected">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground"
                                                     Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneAccentBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}"
                              Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" Margin="{TemplateBinding Padding}"
                              VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="Stretch" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Storyboard x:Name="AnimationPromos">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Promo1">
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:4" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:7" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:7.3" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Promo2">
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3.3" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:7" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:8" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        
    </phone:PhoneApplicationPage.Resources>
    <!-- Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Minimized" >
            <!--shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="Button 1"></shell:ApplicationBarIconButton>
            <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/appbar_button2.png" Text="Button 2"></shell:ApplicationBarIconButton-->
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="menuItem1" Text="paramètres"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    
    <phone:PhoneApplicationPage.DataContext>
        <Binding Path="MainViewModel" Source="{StaticResource ViewModelLocator}" />
    </phone:PhoneApplicationPage.DataContext>
    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot">
        <controls:Panorama x:Name="Pano" TitleTemplate="{StaticResource HeaderTemplate}">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="SelectionChanged">
                    <eim:ControlStoryboardAction Storyboard="{StaticResource AnimationPromos}"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
            <controls:Panorama.Background>
                <ImageBrush ImageSource="../images/Panorama_background.png" Stretch="UniformToFill" />
            </controls:Panorama.Background>
            <controls:PanoramaItem Header="accueil" Orientation="Horizontal" MaxWidth="600" Foreground="White">
                <toolkit:WrapPanel Margin="0,0,0,12">
                    <Button Style="{StaticResource ButtonNoStyle}" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/PromosPage.xaml" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                        <Grid Height="173" Width="358" Background="White" Margin="12,0,0,12">
                            <TextBlock TextWrapping="Wrap" Text="Promotions" VerticalAlignment="Bottom" Margin="12,0,12,12"
          			d:LayoutOverrides="Width" Grid.ColumnSpan="2" />
                            <Rectangle Fill="{StaticResource AccentBrushPromo}" Height="8" VerticalAlignment="Bottom"
          			Grid.ColumnSpan="2" />
                            <Image HorizontalAlignment="Right" Height="48" Source="../ICONS/appbar.black.png" Stretch="Fill"
          			VerticalAlignment="Bottom" Width="48" Grid.Column="1" Margin="0,0,0,8" />
                            <Grid HorizontalAlignment="Right" Height="48" Margin="0,6,6,0" VerticalAlignment="Top" Width="48"
          			Grid.Column="1">
                                <Rectangle Fill="{StaticResource AccentBrushPromo}" />
                                <TextBlock TextWrapping="Wrap" Text="89" d:LayoutOverrides="Width, Height" Foreground="White"
          				HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" />
                            </Grid>
                            <Grid x:Name="Promo1" Grid.ColumnSpan="2" Margin="12,12,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="265" Opacity="0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Image Source="../images/promo1.png" MaxHeight="110"
                     />
                                <StackPanel HorizontalAlignment="Left" Orientation="Vertical" VerticalAlignment="Center"
          				Margin="12,0,0,0" Grid.Column="1">
                                    <TextBlock TextWrapping="Wrap" Text="199€" Style="{StaticResource PhoneTextLargeStyle}" Margin="0"
          					Foreground="#FFFF8601" d:LayoutOverrides="Width" HorizontalAlignment="Right" />
                                    <TextBlock TextWrapping="Wrap" Text="au lieu de" Style="{StaticResource PhoneTextNormalStyle}"
          					Margin="0" d:LayoutOverrides="Width" Foreground="Black" />
                                    <Border Margin="0"
          					d:LayoutOverrides="Width" Background="#FFF1F1F1" >
                                        <Grid Height="36" Width="87">
                                            <TextBlock TextWrapping="Wrap" Text="249€" Style="{StaticResource PhoneTextLargeStyle}" FontSize="26.667" Foreground="Black" Margin="0" HorizontalAlignment="Center" />
                                            <Path Data="M79,8 L0,28" Stretch="Fill" UseLayoutRounding="False" StrokeThickness="2" Stroke="#7F000000"/>
                                        </Grid>
                                    </Border>
                                </StackPanel>
                            </Grid>
                            <Grid x:Name="Promo2" Grid.ColumnSpan="2" Margin="12,12,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="265">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Image Source="../images/promo2.png" MaxHeight="110"
                     />
                                <StackPanel HorizontalAlignment="Left" Orientation="Vertical" VerticalAlignment="Center"
          				Margin="12,0,0,0" Grid.Column="1">
                                    <TextBlock TextWrapping="Wrap" Text="299€" Style="{StaticResource PhoneTextLargeStyle}" Margin="0"
          					Foreground="#FFFF8601" d:LayoutOverrides="Width" HorizontalAlignment="Right" />
                                    <TextBlock TextWrapping="Wrap" Text="au lieu de" Style="{StaticResource PhoneTextNormalStyle}"
          					Margin="0" d:LayoutOverrides="Width" Foreground="Black" />
                                    <Border Margin="0"
          					d:LayoutOverrides="Width" Background="#FFF1F1F1" >
                                        <Grid Height="36" Width="87">
                                            <TextBlock TextWrapping="Wrap" Text="349€" Style="{StaticResource PhoneTextLargeStyle}" FontSize="26.667" Foreground="Black" Margin="0" HorizontalAlignment="Center" />
                                            <Path Data="M79,8 L0,28" Stretch="Fill" UseLayoutRounding="False" StrokeThickness="2" Stroke="#7F000000"/>
                                        </Grid>
                                    </Border>
                                </StackPanel>
                            </Grid>
                        </Grid>
                    </Button>
                    <Button Style="{StaticResource ButtonNoStyle}" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/MapPage.xaml" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                        <Grid Height="173" Width="173" Background="White" Margin="12,0,0,12">
                            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Trouver un magasin"
                         VerticalAlignment="Bottom" Margin="12,0,0,12" />
                            <Rectangle Fill="{StaticResource AccentBrushMagasin}" Height="8" VerticalAlignment="Bottom" />
                            <Image HorizontalAlignment="Left" Height="48" Source="../ICONS/appbar.location.black.png" Stretch="Fill"
                     VerticalAlignment="Top" Width="48" />
                        </Grid>
                    </Button>
                    <Button Style="{StaticResource ButtonNoStyle}" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/ScanProductPage.xaml" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                        <Grid Height="173" Width="173" Background="White" Margin="12,0,0,12">
                            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Scan produit" VerticalAlignment="Bottom"
                         Margin="12,0,12,12" FontSize="25.333" />
                            <Rectangle Fill="{StaticResource AccentBrushScan}" Height="8" VerticalAlignment="Bottom" />
                            <Image HorizontalAlignment="Left" Height="48" Source="../ICONS/appbar.barcode.png" Stretch="Fill"
                     VerticalAlignment="Top" Width="48" />
                            <Grid HorizontalAlignment="Right" Height="48" Margin="0,6,6,0" VerticalAlignment="Top" Width="48">
                                <Rectangle Fill="{StaticResource AccentBrushScan}" />
                                <TextBlock Text="{Binding NbrArticles}" TextWrapping="Wrap"  d:LayoutOverrides="Width, Height" Foreground="White"
                           HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" />
                            </Grid>
                        </Grid>
                    </Button>
                    <Button Style="{StaticResource ButtonNoStyle}" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/ToBuyPage.xaml"/>
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                        <Grid Width="173" Background="White" HorizontalAlignment="Right" Margin="12,0,0,12" Height="173">
                            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Produits mis de côté"
                         VerticalAlignment="Bottom" Margin="12,0,0,11" />
                            <Rectangle Fill="{StaticResource AccentBrushListe}" Height="8" VerticalAlignment="Bottom" />
                            <Image HorizontalAlignment="Left" Height="48" Source="../ICONS/appbar.caddie.rest.png" Stretch="Fill"
                     VerticalAlignment="Top" Width="48" />
                            <Grid HorizontalAlignment="Right" Height="48" Margin="0,6,6,0" VerticalAlignment="Top" Width="48">
                                <Rectangle Fill="{StaticResource AccentBrushListe}" />
                                <TextBlock TextWrapping="Wrap" Text="3" d:LayoutOverrides="Width, Height" Foreground="White"
                           HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" />
                            </Grid>
                        </Grid>
                    </Button>
                    <Button Style="{StaticResource ButtonNoStyle}" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/HistoriquePage.xaml"/>
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                        <Grid Height="173" Width="173" Background="White" Margin="12,0,0,12">
                            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Historique" VerticalAlignment="Bottom"
                         Margin="12,0,0,12" />
                            <Rectangle Fill="{StaticResource AccentBrushHistorique}" Height="8" VerticalAlignment="Bottom" />
                            <Image HorizontalAlignment="Left" Height="48" Source="../icons/appbar.repeat.black.png" Stretch="Fill"
                     VerticalAlignment="Top" Width="48" />
                            <Grid HorizontalAlignment="Right" Height="48" Margin="0,6,6,0" VerticalAlignment="Top" Width="48">
                                <Rectangle Fill="{StaticResource AccentBrushHistorique}" />
                                <TextBlock TextWrapping="Wrap" Text="3" d:LayoutOverrides="Width, Height" Foreground="White"
                           HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" />
                            </Grid>
                        </Grid>
                    </Button>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <HyperlinkButton Content="Mon magasin : Issy les Moulineaux" Foreground="Black" d:LayoutOverrides="Width, Height" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                        <Image Source="../icons/appbar.home.png" Stretch="Fill" Width="48" HorizontalAlignment="Center" VerticalAlignment="Center" Height="48"/>
                    </Grid>
                </toolkit:WrapPanel>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="à acheter" Foreground="White">
                <ListBox ItemsSource="{Binding Datas.ToBuyList}"
                 HorizontalContentAlignment="Stretch" Margin="12,0,12,12" ItemContainerStyle="{StaticResource ListBoxItemStyle1}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Margin="0,0,0,6">
                                <toolkit:ContextMenuService.ContextMenu>
                                    <toolkit:ContextMenu Background="White" IsZoomEnabled="False">
                                        <toolkit:MenuItem Foreground="Black" Header="partager..." />
                                        <toolkit:MenuItem Foreground="Black" Header="supprimer"/>
                                    </toolkit:ContextMenu>
                                </toolkit:ContextMenuService.ContextMenu>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid Height="62" Width="62" VerticalAlignment="Center" Background="White">
                                    <Image d:LayoutOverrides="GridBox" />
                                </Grid>
                                <TextBlock Text="{Binding Name}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="12,0"
                   d:LayoutOverrides="Width, Height" Grid.Column="1" VerticalAlignment="Center" TextWrapping="Wrap" />
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="trophées" Foreground="White">
                <Grid Margin="12,0">
                    <toolkit:ContextMenuService.ContextMenu>
                        <toolkit:ContextMenu Background="White" IsZoomEnabled="False">
                            <toolkit:MenuItem Foreground="Black" Header="partager..." />
                        </toolkit:ContextMenu>
                    </toolkit:ContextMenuService.ContextMenu>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <HyperlinkButton Content="voir l'ensemble des trophées" HorizontalAlignment="Left" Grid.Row="0" Grid.ColumnSpan="2" Grid.Column="1" Foreground="Black">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <ec:NavigateToPageAction TargetPage="/Views/TrophyPage.xaml"/>
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </HyperlinkButton>
                    <ListBox ItemsSource="{Binding LastTrophies}" Grid.Row="1" Grid.ColumnSpan="2" Foreground="Black">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid Margin="0,0,0,6">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid Height="63" Width="63" VerticalAlignment="Center" Background="White">
                                        <Image Source="{Binding Image}" />
                                    </Grid>
                                    <TextBlock Text="{Binding Name}" Style="{StaticResource PhoneTextExtraLargeStyle}" Margin="12,0"
                             d:LayoutOverrides="Width, Height" Grid.Column="1"/>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <Image HorizontalAlignment="Left" Source="../icons/appbar.crown.png" Stretch="Fill" Height="48" Width="48"/>
                </Grid>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="outils" Foreground="White">
                <ScrollViewer Margin="12,0,0,0">
                    <StackPanel>
                        <Button Content="ma voiture" Style="{StaticResource ButtonNoStyle}" Foreground="Black" FontFamily="Segoe WP SemiLight" FontSize="32" Margin="0,0,0,12">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="Click">
                                    <ec:NavigateToPageAction TargetPage="/Views/MaVoiturePage.xaml" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                        </Button>
                        <Button Content="ma carte de fidélité" Style="{StaticResource ButtonNoStyle}" Foreground="Black" FontFamily="Segoe WP SemiLight" FontSize="32" Margin="0,0,0,12">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="Click">
                                    <ec:NavigateToPageAction TargetPage="/Views/BarCodePage.xaml" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                        </Button>
                        <Button Content="actualité" Style="{StaticResource ButtonNoStyle}" Foreground="Black" FontFamily="Segoe WP SemiLight" FontSize="32" Margin="0,0,0,12">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="Click">
                                    <ec:NavigateToPageAction TargetPage="/Views/NewsPage.xaml" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                        </Button>
                        <Button Content="les services shopscan" Style="{StaticResource ButtonNoStyle}" Foreground="Black" FontFamily="Segoe WP SemiLight" FontSize="32" Margin="0,0,0,12">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="Click">
                                    <ec:NavigateToPageAction TargetPage="/Views/ServicesAuchanPage.xaml" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                        </Button>
                    </StackPanel>
                </ScrollViewer>
            </controls:PanoramaItem>
        </controls:Panorama>
        <Image x:Name="Herbe" Source="../images/herbe.png" VerticalAlignment="Bottom" Margin="0,0,0,8" />
    </Grid>
</phone:PhoneApplicationPage>
